import service from './index'

//按需导出
export function xglPageCount(data) {
    return service({
        url: '/admin/department/page/count',
        method: 'get',
        params:data
    })
}
export function xglPage(data,page) {
    return service({
        url: '/admin/department/page/'+page,
        method: 'get',
        params:data
    })
}
//添加
export function xglAdd(data) {
    return service({
        url: '/admin/department',
        method: 'post',
        data:data
    })
}
//详情
export function xglDetail(id) {
    return service({
        url: '/admin/department/'+id,
        method: 'get',  
    })
}
//编辑
export function xglEdit(data) {
    return service({
        url: '/admin/department',
        method: 'put',
        data:data  
    })
}
//删除
export function xglDelete(id) {
    return service({
        url: '/admin/department/'+id,
        method: 'delete',

    })
}